from django.conf.urls import url,include
from .views import index,user,cates,goods,orders
urlpatterns = [
    url(r'^$',index.index,name='index'),

    #会员操作
    url(r'^user_add/$',user.user_add,name='user_add'),
    url(r'^user_insert/$',user.user_insert,name='user_insert'),
    url(r'^user_list/$',user.user_list,name='user_list'),
    url(r'^user_edit/$',user.user_edit,name='user_edit'),
    url(r'^user_status/$',user.user_status,name='user_status'),
    url(r'^user_del/$',user.user_del,name='user_del'),
    url(r'^user_nike/$',user.user_nike,name='user_nike'),

    #商品分类
    url(r'^cates_add/$',cates.cates_add,name='cates_add'),
    url(r'^cates_index/$',cates.cates_index,name='cates_index'),
    url(r'^cates_del/$',cates.cates_del,name='cates_del'),
    url(r'^cates_update/$', cates.cates_update, name='cates_update'),

    #用户登录
    url(r'^user_log/$',index.user_log,name='user_log'),
    url(r'^user_logout/$',index.user_logout,name='user_logout'),
    url(r'^user_log_check/$',index.user_log_check,name='user_log_check'),
    url(r'^verifycode/$',index.verifycode,name='verifycode'),
    #url(r'^verifycode/$',user.verifycode,name='verifycode')

    #商品操作
    url(r'^goods_add/$',goods.goods_add,name='goods_add'),
    url(r'^goods_insert/$',goods.goods_insert,name='goods_insert'),
    url(r'^goods_list/$',goods.goods_list,name='goods_list'),
    url(r'^goods_status/$',goods.goods_status,name='goods_status'),
    url(r'^goodsname/$', goods.goodsname, name='goodsname'),
    url(r'^goods_edit/$', goods.goods_edit, name='goods_edit'),
    url(r'^goods_del/$', goods.goods_del, name='goods_del'),

    #权限管理
    url(r'^authuser_index/$',index.authuser_index,name="authuser_index"),
    url(r'^authuser_add/$', index.authuser_add, name="authuser_add"),
    url(r'^authuser_insert/$', index.authuser_insert, name="authuser_insert"),
    url(r'^authuser_del/$', index.authuser_del, name="authuser_del"),
    url(r'^authuser_edit/$', index.authuser_edit, name="authuser_edit"),

    url(r'^authgroup_index/$', index.authgroup_index, name="authgroup_index"),
    url(r'^authgroup_del/$', index.authgroup_del, name="authgroup_del"),
    url(r'^authgroup_insert/$', index.authgroup_insert, name="authgroup_insert"),
    url(r'^authgroup_edit/$', index.authgroup_edit, name="authgroup_edit"),

    #订单管理

    url(r'^order_index/$', orders.order_index, name="order_index"),
    url(r'^order_status/$', orders.order_status, name="order_status"),
    url(r'^order_info/$', orders.order_info, name="order_info"),


]
